import { defineStore } from 'pinia';
import { RouteRecordRaw } from 'vue-router';
import { headerActions, headerGetters, headerState } from './types';
const state = (): headerState => {
    return {
        component: {
        },
        data: {
        },
        routes: [],
    }
}

const actions: headerActions = {
    _setHeaderRoutes(routes: RouteRecordRaw[]) {
        this.routes = [...routes];
    }

}

const getters: headerGetters = {
}


export const useHeaderStore = defineStore('headerComponet', {
    state,
    actions,
    getters,
});

